<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>王者荣耀竞猜管理平台</title>
    <link rel="stylesheet" type="text/css"
          href="${pageContext.request.contextPath}/static/jquery-easyui-1.5.3/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css"
          href="${pageContext.request.contextPath}/static/jquery-easyui-1.5.3/themes/icon.css">
    <script type="text/javascript"
            src="${pageContext.request.contextPath}/static/jquery-easyui-1.5.3/jquery.min.js"></script>
    <script type="text/javascript"
            src="${pageContext.request.contextPath}/static/jquery-easyui-1.5.3/jquery.easyui.min.js"></script>
    <script type="text/javascript"
            src="${pageContext.request.contextPath}/static/jquery-easyui-1.5.3/locale/easyui-lang-zh_CN.js"></script>
</head>
<body>
<div align="center">
    <form id="ff" method="post" action="/bettingRecord/update">
        <input type="hidden" name="fdId" value="${bettingRecord.fdId}">
        <table cellpadding="5">
            <tr>
                <td>竞猜类型：</td>
                <td>
                    <input type="radio" name="fdType" data-options="required:true" value="1" ${bettingRecord.fdType == 1 ? 'checked':''}/>赛事竞猜
                    <input type="radio" name="fdType" data-options="required:true" value="0" ${bettingRecord.fdType == 0 ? 'checked':''}/>战局竞猜
                </td>
            </tr>
            <tr>
                <td>竞猜时间：</td>
                <td><input class="easyui-textbox" type="text" id="fdBettingTime" name="fdBettingTime"
                           value="${bettingRecord.fdBettingTime}"
                           data-options="required:true"/></td>
            </tr>
            <tr>
                <td>竞猜房间：</td>
                <td><input class="easyui-textbox" type="text" id="fdRoomNo" name="fdRoomNo"
                           value="${bettingRecord.fdRoomName}"
                           data-options="required:true"/></td>
            </tr>
            <tr>
                <td>竞猜游戏：</td>
                <td><input class="easyui-textbox" type="text" id="fdGameName" name="fdGameName"
                           value="${bettingRecord.fdGameName}"
                           data-options="required:true"/></td>
            </tr>
            <tr>
                <td>赛事名称：</td>
                <td><input class="easyui-textbox" type="text" id="fdRaceName" name="fdRaceName"
                           value="${bettingRecord.fdRaceName}"
                           data-options="required:true"/></td>
            </tr>
            <tr>
                <td>竞猜金额：</td>
                <td><input class="easyui-textbox" type="text" id="fdBettingAmount" name="fdBettingAmount"
                           value="${bettingRecord.fdBettingAmount}"
                           data-options="required:true"/></td>
            </tr>
            <tr>
                <td>竞猜战队名称：</td>
                <td><input class="easyui-textbox" type="text" id="fdBettingWarName" name="fdBettingWarName"
                           value="${bettingRecord.fdBettingWarName}"
                           data-options="required:true"/></td>
            </tr>

            <tr>
                <td>竞猜用户：</td>
                <td><input class="easyui-textbox" type="text" id="fdUserId" name="fdUserId"
                           value="${bettingRecord.fdUserName}"
                           data-options="required:true"/></td>
            </tr>
            <tr>
                <td>竞猜结果：</td>
                <td>
                    <input type="radio" name="fdResult" data-options="required:true" value="1" ${bettingRecord.fdResult == 0 ? 'checked':''}/>未开奖
                    <input type="radio" name="fdResult" data-options="required:true" value="0" ${bettingRecord.fdResult == -1 ? 'checked':''}/>战队A胜
                    <input type="radio" name="fdResult" data-options="required:true" value="0" ${bettingRecord.fdResult == 1 ? 'checked':''}/>战队B胜
                </td>
            </tr>
            <tr>
                <td>竞猜输赢金额：</td>
                <td><input class="easyui-textbox" type="text" id="fdWinLose" name="fdWinLose"
                           value="${bettingRecord.fdWinLose}"
                           data-options="required:true"/></td>
            </tr>
            <tr>
                <td>竞猜备注：</td>
                <td><input class="easyui-textbox" type="text" id="fdRemark" name="fdRemark"
                           value="${bettingRecord.fdRemark}"
                           data-options="required:true"/></td>
            </tr>
            <tr>
                <td>是否结算：</td>
                <td>
                    <input type="radio" name="fdIsSettlement" data-options="required:true" value="1" ${bettingRecord.fdIsSettlement == 0 ? 'checked':''}/>未结算
                    <input type="radio" name="fdIsSettlement" data-options="required:true" value="0" ${bettingRecord.fdIsSettlement == 1 ? 'checked':''}/>已结算
                </td>
            </tr>
        </table>
    </form>
    <div style="text-align:center;padding:5px">
        <a href="javascript:void(0)" class="easyui-linkbutton" onclick="submitForm()">提交</a>
        <a href="javascript:void(0)" style="margin-left: 20px" class="easyui-linkbutton" onclick="clearForm()">重置</a>
    </div>
</div>
</body>
<script src="${pageContext.request.contextPath}/static/pages/bettingRecord/edit.js"></script>
</html>
